package alp.starcode.nudtportal.framework.mybatis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * sys_links（友情链接表）
 * </p>
 *
 * @author xwx
 * @since 2023-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_links")
@ApiModel(value = "SysLinks对象", description = "sys_links（友情链接表）")
public class SysLinks extends Model<SysLinks> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "链接流水号")
    @TableId(value = "links_id", type = IdType.AUTO)
    private Integer linksId;

    @ApiModelProperty(value = "链接标题")
    @TableField("links_title")
    private String linksTitle;

    @TableField("link_icon")
    private String linkIcon;

    @ApiModelProperty(value = "访问地址")
    @TableField("access_address")
    private String accessAddress;

    @ApiModelProperty(value = "访问参数")
    @TableField("access_param")
    private String accessParam;

    @ApiModelProperty(value = "访问类型：0H5、1微信小程序、2支付宝小程序")
    @TableField("access_type")
    private Integer accessType;

    @ApiModelProperty(value = "是否显示：0显示、1不显示")
    @TableField("is_display")
    private Boolean isDisplay;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.linksId;
    }

}
